$OpenBSD: patch-modules_nat_traversal_nat_traversal_c,v 1.2 2015/11/20 10:09:52 sthen Exp $
--- modules/nat_traversal/nat_traversal.c.orig	Fri Oct  2 15:35:18 2015
+++ modules/nat_traversal/nat_traversal.c	Mon Oct 19 14:00:40 2015
@@ -1662,7 +1662,7 @@ static void
 restore_keepalive_state(void)
 {
     char uri[64], socket[64];
-    time_t rtime, stime, now;
+    long rtime, stime, now;
     NAT_Contact *contact;
     struct socket_info *sock;
     int port, proto, res;
@@ -1680,7 +1680,7 @@ restore_keepalive_state(void)
         return;
     }
 
-    now = time(NULL);
+    now = (long)time(NULL);
 
     res = fscanf(f, STATE_FILE_HEADER); // skip header
 
